<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: 2016 U.S. Presidential Election</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for Election16"><tr><td>Election16</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>2016 U.S. Presidential Election</h2>

<h3>Description</h3>

<p>2016 presidential election and state demographic data
</p>


<h3>Format</h3>

<p>A data frame with 50 observations on the following 8 variables.
</p>

<dl>
<dt><code>State</code></dt><dd><p>State name</p>
</dd>
<dt><code>Abr</code></dt><dd><p>Abbreviation for state name</p>
</dd>
<dt><code>Income</code></dt><dd><p>Per capita income in the state</p>
</dd>
<dt><code>HS</code></dt><dd><p>Percent high school grads</p>
</dd>
<dt><code>BA</code></dt><dd><p>Percent college grads</p>
</dd>
<dt><code>Adv</code></dt><dd><p>Percent with advanced degrees</p>
</dd>
<dt><code>Dem.Rep</code></dt><dd><p>Democratic lean - Republican lean in 2015 Gallup poll</p>
</dd>
<dt><code>TrumpWin</code></dt><dd><p>Trump won the state? (<code>1</code>=yes or <code>0</code>=no)</p>
</dd>
</dl>



<h3>Details</h3>

<p>This dataset contains information from all 50 states and the District of Columbia for the 2016 U.S. presidential election.  It is similar to Election08 for the 2008 election.
</p>


<h3>Source</h3>

<p>Income data from<br />
https://www.census.gov/search-results.html?q=per+capita+income+by+state&amp;search.x=0 &amp;search.y=0&amp;search=submit&amp;page=1&amp;stateGeo=none&amp;searchtype=web&amp;cssp=SERP
</p>
<p>2015 data via American Community Survey<br />
https://en.wikipedia.org/wiki/List_of_U.S._states_by_educational_attainment
from Bureau, U.S. Census. &quot;2011-2015 American Community Survey 5-Year Estimates. factfinder.census.gov. Retrieved 2017-01-19.
</p>
<p>http://www.gallup.com/poll/188969/red-states-outnumber-blue-first-time-gallup-tracking.aspx
</p>


</body></html>
